#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time :    2019/9/21 15:16
@Author:  ThinHeader
@File: config.py
@Software: PyCharm
"""

from django.conf import settings
import os


class WxPayConf_pub(object):
    """配置账号信息"""
    # =======【基本信息设置】=====================================
    # 微信公众号身份的唯一标识。审核通过后，在微信发送的邮件中查看
    APPID = ''
    APPSECRET = ''
    # 受理商ID，身份标识
    MCHID = ''
    # 商户支付密钥Key。审核通过后，在微信发送的邮件中查看
    KEY = ''

    # =======【异步通知url设置】===================================
    # 异步通知url，商户根据实际开发过程设定
    NOTIFY_URL = 'http://qxb.dongpouu.com/callback/wxpayback'

    # 异步退款通知url，商户根据实际开发过程设定
    REFUND_NOTIFY_URL = 'http://wx.qxb.dongpouu.com/callback/refund/wxpayback'

    # =======【证书路径设置】=====================================
    # 证书路径,注意应该填写绝对路径
    SSLCERT_PATH = '/******/cacert/apiclient_cert.pem'
    SSLKEY_PATH = '/******/cacert/apiclient_key.pem'

    # =======【curl超时设置】===================================
    CURL_TIMEOUT = 30

    # =======【HTTP客户端设置】===================================
    HTTP_CLIENT = 'REQUESTS'  # ("URLLIB", "CURL", "REQUESTS")


class WxPayConf_shop(object):
    """小嘟科技账号信息"""
    # =======【基本信息设置】=====================================
    # 微信公众号身份的唯一标识。审核通过后，在微信发送的邮件中查看 小嘟科技
    APPID = 'wx87433e29e621c32e'
    APPSECRET = '4a42955f9439178870c88f691cc3c35d'
    # 受理商ID，身份标识
    MCHID = '1557682251'
    # 商户支付密钥Key。审核通过后，在微信发送的邮件中查看
    KEY = 'fasdfasdwfasdwtfasdwt43456rtgw45'

    # =======【异步通知url设置】===================================
    # 异步通知url，商户根据实际开发过程设定
    NOTIFY_URL = 'http://qxb.dongpouu.com/callback/wxpayback'

    # 异步退款通知url，商户根据实际开发过程设定
    REFUND_NOTIFY_URL = 'http://wx.qxb.dongpouu.com/callback/refund/wxpayback'

    # =======【证书路径设置】=====================================
    # 证书路径,注意应该填写绝对路径
    SSLCERT_PATH = '/home/django/xuemei_show/media/shop_cacert/apiclient_cert.pem'
    SSLKEY_PATH = '/home/django/xuemei_show/media/shop_cacert/apiclient_key.pem'

    # =======【curl超时设置】===================================
    CURL_TIMEOUT = 30

    # =======【HTTP客户端设置】===================================
    HTTP_CLIENT = 'REQUESTS'  # ("URLLIB", "CURL", "REQUESTS")


class WxPayConf_service(object):
    """配置账号信息"""
    # =======【基本信息设置】=====================================
    # 微信公众号身份的唯一标识。审核通过后，在微信发送的邮件中查看
    APPID = 'wxb47c83f489668b13'
    APPSECRET = '5b37a6eb27a287c369373a48d0d4a73a'
    # 受理商ID，身份标识
    MCHID = '1496657242'
    # 商户支付密钥Key。审核通过后，在微信发送的邮件中查看
    KEY = 'c1395afb94c542503a31b24d55cead46'
    # 微信服务商APIv3的密钥
    API_V3_KEY = 'cEcMoMeXGcW8CsdqNasQ9DqwkMkPqOph'

    # =======【异步通知url设置】===================================
    # 异步通知url，商户根据实际开发过程设定
    NOTIFY_URL = 'http://qxb.dongpouu.com/callback/wxpayback'

    # 异步退款通知url，商户根据实际开发过程设定
    REFUND_NOTIFY_URL = 'http://wx.qxb.dongpouu.com/callback/refund/wxpayback'

    # =======【证书路径设置】=====================================
    # 证书路径,注意应该填写绝对路径
    SSLCERT_PATH = os.path.join(settings.BASE_DIR, settings.MEDIA_ROOT, 'yun_cacert/apiclient_cert.pem')
    SSLKEY_PATH = os.path.join(settings.BASE_DIR, settings.MEDIA_ROOT, 'yun_cacert/apiclient_key.pem')

    # =======【curl超时设置】===================================
    CURL_TIMEOUT = 30

    # =======【HTTP客户端设置】===================================
    HTTP_CLIENT = 'REQUESTS'  # ("URLLIB", "CURL", "REQUESTS")
